/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const customerRouter = {
  path: '/customer',
  component: Layout,
  name: '客户管理',
  meta: {
    title: '客户管理',
    subtitle:'客户',
    icon: 'menu_member'
  },
  children: [
    // {
    //   path: '/sysMch/list',
    //   component: () => import('@/views/sysMch/list'),
    //   name: 'sysMch-list',
    //   meta: { title: '商户管理',subtitle:'商户', icon: 'menu_sysMch', permissions: ['sysMch.query'] }
    // },
    // {
    //   path: '/sysMch/add',
    //   component: () => import('@/views/sysMch/add'),
    //   name: 'sysMch-add',
    //   meta: { title: '新增商户', icon: 'menu_sysMch' },
    //   hidden: true
    // },
    // {
    //   path: '/sysMch/edit',
    //   component: () => import('@/views/sysMch/edit'),
    //   name: 'sysMch-edit',
    //   meta: { title: '修改商户', icon: 'menu_sysMch' },
    //   hidden: true
    // },
    {
      path: '/evaluate/list',
      component: () => import('@/views/evaluate/list'),
      name: 'evaluate-list',
      meta: {title: '评价管理',subtitle:'评价', icon: 'menu_vip', permissions: ['vip.query']}
    },
    {
      path: '/vip/list',
      component: () => import('@/views/vip/list'),
      name: 'vip-list',
      meta: {title: '客户等级',subtitle:'等级', icon: 'menu_vip', permissions: ['vip.query']}
    },
    // {
    //   path: '/company/list',
    //   component: () => import('@/views/company/list'),
    //   name: 'company-list',
    //   meta: {title: '企业客户',subtitle:'企业', icon: 'menu_member', permissions: ['companyList.query']}
    // },
    // {
    //   path: '/member/list',
    //   component: () => import('@/views/member/list'),
    //   name: 'member-list',
    //   meta: {title: '客户档案', subtitle:'档案',icon: 'menu_member', permissions: ['member.query']}
    // },
    // {
    //   path: '/member/add',
    //   component: () => import('@/views/member/add'),
    //   name: 'member-add',
    //   meta: {title: '新增客户', icon: 'menu_member'},
    //   hidden: true
    // },
    // {
    //   path: '/member/edit',
    //   component: () => import('@/views/member/edit'),
    //   name: 'member-edit',
    //   meta: {title: '修改客户', icon: 'menu_member'},
    //   hidden: true
    // },
    // {
    //   path: '/member/detail',
    //   component: () => import('@/views/member/detail'),
    //   name: 'member-detail',
    //   meta: { title: '客户详情', icon: 'menu_member' },
    //   hidden: true
    // },
    {
      path: '/company/add',
      component: () => import('@/views/company/add'),
      name: 'company-add',
      meta: {title: '新增企业客户', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/edit',
      component: () => import('@/views/company/edit'),
      name: 'company-edit',
      meta: {title: '编辑企业客户', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/employeeList',
      component: () => import('@/views/company/employeeList'),
      name: 'employee-list',
      meta: {title: '企业员工', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/employeeAdd',
      component: () => import('@/views/company/employeeAdd'),
      name: 'employee_add',
      meta: {title: '导入员工名单', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/employeeEdit',
      component: () => import('@/views/company/employeeEdit'),
      name: 'employee-edit',
      meta: {title: '编辑员工信息', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/employeeConsumption',
      component: () => import('@/views/company/employeeConsumption'),
      name: 'emplyee_consumption',
      meta: {title: '员工消费详情', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/company/recharge',
      component: () => import('@/views/company/recharge'),
      name: 'company-recharge',
      meta: {title: '企业充值', icon:'menu_member'},
      hidden: true
    },
    {
      path: '/company/rechargeList',
      component: () => import('@/views/company/rechargeList'),
      name: 'company-rechargeList',
      meta: {title: '企业充值明细', icon: 'menu_member'},
      hidden: true
    },
    {
      path: '/member/welfareBill',
      component: () => import('@/views/member/welfareBill'),
      name: 'member-welfareBill',
      meta: { title: '福利卡账单', icon: 'menu_member' },
      hidden: true
    },
    {
      path: '/member/memberExport',
      component: () => import('@/views/member/memberExport'),
      name: 'member-memberExport',
      meta: { title: '导入导出', icon: 'menu_member' },
      hidden: true
    },

    {
      path: '/famousStore/list',
      component: () => import('@/views/famousStore/list'),
      name: 'famousStore-list',
      meta: { title: '百家名店' ,subtitle:'名店',icon: 'menu_shop', permissions:['famousStore.query']}
    },
    {
      path: '/famousStore/add',
      component: () => import('@/views/famousStore/add'),
      name: 'famousStore-add',
      meta: { title: '新增名店' ,icon: 'menu_shop', },
      hidden: true
    },
    {
      path: '/famousStore/edit',
      component: () => import('@/views/famousStore/edit'),
      name: 'famousStore-edit',
      meta: { title: '修改名店' ,icon: 'menu_shop', },
      hidden: true
    },
    // {
    //   path: '/famousFood/list',
    //   component: () => import('@/views/famousFood/list'),
    //   name: 'famousFood-list',
    //   meta: { title: '百道名菜' ,subtitle:'名店',icon: 'menu_shop', permissions:['famousFood.query']}
    // },
    // {
    //   path: '/famousFood/add',
    //   component: () => import('@/views/famousFood/add'),
    //   name: 'famousFood-add',
    //   meta: { title: '新增名菜' ,icon: 'menu_shop', },
    //   hidden: true
    // },
    // {
    //   path: '/famousFood/edit',
    //   component: () => import('@/views/famousFood/edit'),
    //   name: 'famousFood-edit',
    //   meta: { title: '修改名菜' ,icon: 'menu_shop', },
    //   hidden: true
    // },
    {
      path: '/famousCooker/list',
      component: () => import('@/views/famousCooker/list'),
      name: 'famousCooker-list',
      meta: { title: '百名厨师' ,subtitle:'名店',icon: 'menu_shop', permissions:['famousCooker.query']}
    },
    {
      path: '/famousCooker/add',
      component: () => import('@/views/famousCooker/add'),
      name: 'famousCooker-add',
      meta: { title: '新增厨师' ,icon: 'menu_shop', },
      hidden: true
    },
    {
      path: '/famousCooker/edit',
      component: () => import('@/views/famousCooker/edit'),
      name: 'famousCooker-edit',
      meta: { title: '修改厨师' ,icon: 'menu_shop', },
      hidden: true
    },
    {
      path: '/moveCar/list',
      component: () => import('@/views/moveCar/list'),
      name: 'moveCar-list',
      meta: { title: '移动餐车' ,subtitle:'名店',icon: 'menu_shop', permissions:['moveCar.query']}
    },
    {
      path: '/moveCar/add',
      component: () => import('@/views/moveCar/add'),
      name: 'moveCar-add',
      meta: { title: '新增餐车' ,icon: 'menu_shop', },
      hidden: true
    },
    {
      path: '/moveCar/edit',
      component: () => import('@/views/moveCar/edit'),
      name: 'moveCar-edit',
      meta: { title: '修改餐车' ,icon: 'menu_shop',},
      hidden: true
    },

    {
      path: '/talent/list',
      component: () => import('@/views/talent/list'),
      name: 'talent-list',
      meta: { title: '达人管理',subtitle:'达人', icon: 'menu_sysMch', permissions: ['talent.query'] }
    },
    {
      path: '/talent/edit',
      component: () => import('@/views/talent/edit'),
      name: 'talent-edit',
      meta: { title: '修改达人信息', icon: 'menu_sysMch' },
      hidden: true
    },

    {
      path: '/kitchen/list',
      component: () => import('@/views/kitchen/list'),
      name: 'kitchen-list',
      meta: { title: '名厨管理',subtitle:'名厨', icon: 'menu_sysMch', permissions: ['kitchen.query'] }
    },
    {
      path: '/kitchen/add',
      component: () => import('@/views/kitchen/add'),
      name: 'kitchen-add',
      meta: { title: '新增名厨', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/kitchen/edit',
      component: () => import('@/views/kitchen/edit'),
      name: 'kitchen-edit',
      meta: { title: '修改名厨信息', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/kitchen/recommend',
      component: () => import('@/views/kitchen/recommend'),
      name: 'kitchen-recommend',
      meta: { title: '关联店铺', icon: 'menu_sysMch' },
      hidden: true
    },

    /* {
      path: '/receiver/list',
      component: () => import('@/views/receiver/list'),
      name: 'receiver-list',
      meta: {title: '客户地址', icon: 'menu_supplier'}
    },
    {
      path: '/receiver/add',
      component: () => import('@/views/receiver/add'),
      name: 'receiver-add',
      meta: {title: '新增地址', icon: 'menu_supplier'},
      hidden: true
    },
    {
      path: '/receiver/edit',
      component: () => import('@/views/receiver/edit'),
      name: 'receiver-edit',
      meta: {title: '修改地址', icon: 'menu_supplier'},
      hidden: true
    } */
  ]
}

export default customerRouter
